﻿/* Nibiru Studio Engine Version [1062] */
// Copyright (c) 2020-2023 Nibiru. All rights reserved.
#pragma once
#include "SharedPointer.h"
#include "Apis/NComponent.h"
#include "Apis/NEngineApi.h"

ENGINE_NAMESPACE_BEGIN

#define SceneLoad_API DLLEXPORT

class EyeManager;

OBJECT_CLASS(SceneLoad)
class SceneLoad_API SceneLoad : public NComponent
{
	DECLARE_CLASS(SceneLoad, NComponent)
	DECLARE_RTTI
	ENABLE_REFLECTION
public:
	SceneLoad() = default;
	virtual ~SceneLoad() = default;
	
	virtual void Start() override;
	virtual void Update() override;
	virtual void OnDestroy() override;
	virtual void PostEditChangeProperty(std::string& propertyName) override;

	virtual void Serialize(Archive& ar) override;
	virtual void LateDeserialize(Archive& ar) override;

private:
    void doStart();
    void doSwitchCalib(); // 跳转页面

private:
    EyeManager* m_pEyeManager = nullptr;
    //
    NLabelPtr m_textMessage;
    //
    int m_delayStart = -1;
    int m_delaySwitch = -1;
	
};
DECLARE_PTR(SceneLoad)
ENGINE_NAMESPACE_END
